package com.tools.test.guava.service;

import com.tools.cache.guava.annotation.LocalLock;
import com.tools.test.guava.entity.UserEntity;
import org.springframework.stereotype.Service;

/**
 * @author com.zaimi
 * @version 1.0
 * @Description: IndexServiceImpl
 * <com.tools.test.guava.service>
 * @date Created in 2020/12/7 16:06
 **/
@Service
public class IndexServiceImpl implements IndexService {


    @LocalLock(key = "localLock:save:id")
    @Override public int save(UserEntity user) {
        return 0;
    }
}
